package com.taotao.portal.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.portal.pojo.CartItem;

public interface CartService {
	TaotaoResult add(HttpServletRequest request, HttpServletResponse response, long id, Integer num);
	List<CartItem> getCartItemList(HttpServletRequest request, HttpServletResponse response);
	TaotaoResult updateNum(long itemId, Integer num, HttpServletRequest request, HttpServletResponse response);
	TaotaoResult delete(long id, HttpServletRequest request, HttpServletResponse response);
}
